#! /bin/bash
# This script is for upload all files to FTP Server.
FTP_SERVER=sync-us.foxitsoftware.com

USER="sdk"
PWD="sdk@140328"
FTP_PATH="/sdk/webtool/input/"
LOCAL_PATH="/opt/cwebtools/input/"

FTP_LOGS_PATH="/sdk/webtool/log"
LOCAL_LOGS_PATH="/opt/cwebtools/logs"

ncftp -u $USER -p $PWD $FTP_SERVER << END
cd $FTP_PATH
lcd $LOCAL_PATH
put -R *
quit
END

ncftp -u $USER -p $PWD $FTP_SERVER << END
cd $FTP_LOGS_PATH
lcd $LOCAL_LOGS_PATH
put -R *
quit
END